$wizard-step-number-size: 60px;
$wizard-step-height: 50px;

.wizard {
    display: flex;
    justify-content: space-between;
    .wizard-step {
        position: relative;
        width: 100%;
        text-align: center;
        &::before {
            position: absolute;
            z-index: -1;
            top: $wizard-step-number-size / 2;
            display: block;
            width: 100%;
            height: 2px;
            content: "";
            background-color: $border-color-default;
        }
        .wizard-step-number {
            width: $wizard-step-number-size;
            height: $wizard-step-number-size;
            border-color: $border-color-default;
            border-radius: 50%;
            background-color: #FFFFFF;
            font-size: 20px;
        }
        .wizard-step-text {
            display: block;
            margin-top: 15px;
        }
    }


    // States
    .wizard-step-active {
        .wizard-step-number {
            color: #FFFFFF;
            border-color: $brand-primary;
            background-color: $brand-primary;
        }
        .wizard-step-text {
            color: $brand-primary;
        }
    }
    .wizard-step-visited {
        .wizard-step-number {
            color: #FFFFFF;
            border-color: $brand-success;
            background-color: $brand-success;
        }
        .wizard-step-text {
        }
    }
}

.wizardprogress {
    display: flex;
    justify-content: space-between;

    .wizard-step-text {
        width: 100%;
    }

    .wizard-step {
        position: relative;
        width: 100%;
        height: $wizard-step-height;
        margin-left: 0 - ($wizard-step-height / 2);
        padding-left: ($wizard-step-height / 2);
        border: 1px solid $border-color-default;
        background: #FFFFFF;

        a {
            display: block;
            overflow: hidden;
            width: 100%;
            height: 100%;
            padding: 14px;
            white-space: nowrap;
            text-decoration: none;
            text-overflow: ellipsis;
            color: $font-color-default;
        }
        &::before,
        &::after {
            position: absolute;
            z-index: 1;
            left: 100%;
            margin-left: 0 - ($wizard-step-height / 2);
            content: " ";
            border-style: solid;
            border-color: transparent;
        }
        &::after {
            top: 1px;
            border-width: (($wizard-step-height / 2) - 1);
            border-left-color: #FFFFFF;
        }
        &::before {
            top: 0;
            border-width: $wizard-step-height / 2;
            border-left-color: $border-color-default;
        }

        &:first-child {
            margin-left: 0;
            padding-left: 0;
            border-radius: 5px 0 0 5px;
        }

        &:last-child {
            border-radius: 0 5px 5px 0;
            &::before,
            &::after {
                display: none;
            }
        }
    }
    // States
    .wizard-step-active {
        background: $brand-primary;
        a {
            text-decoration: none;
            color: #FFFFFF;
        }
        &::after {
            border-left-color: $brand-primary;
        }
    }
    .wizard-step-visited {
        a {
            color: $link-color;
        }
    }
}
